const user = {
    state: {
        uid: null,
        name: null,
        schId: null,
        type: null
    },
    mutations: {
        setUseInfo(state, user) {
            state.uid = user.uid;
            state.name = user.name;
            state.schId = user.schId;
            state.type = user.type;
        },
        clearUser(state) {
            state.uid = null;
            state.name = null;
            state.schId = null;
            state.type = null
        }

    }
};

export default user;